package com.longe.constant;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class Student {

	private String name;

	public Student() {
		this.name = "tom";
		System.err.println("初始化姓名为：" + name);
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	@Async
	public void test(){
		System.err.println("1111111");
	}

	public void test111(){
		System.err.println("1111111");
	}
}